package com.wsj.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.wsj.util.page.PageResultSet;
import com.wsj.web.vo.homeSite.HomeSiteAdBannerDescription;

public interface IHomeSiteAdBannerDescriptDao {

	public void add(HomeSiteAdBannerDescription hsd) throws DataAccessException;
	
	public void update(HomeSiteAdBannerDescription hsd) throws DataAccessException;
	
	public void delete(HomeSiteAdBannerDescription hsd) throws DataAccessException;
	
	public HomeSiteAdBannerDescription loadHsAdBannerById(Integer id) throws DataAccessException;
	
	public HomeSiteAdBannerDescription loadByClassIdAndName(Long classId,String name) throws DataAccessException;
	
	public List loadByNewsClassId(Long newsClassId) throws DataAccessException;
	
	public PageResultSet loadPageList(Long newsClassId,String description,Integer page, Integer pageSize) throws DataAccessException;
	
}
